import itchat
from itchat.content import *

@itchat.msg_register([TEXT],isGroupChat=True)
def simple_reply(msg):
    print(msg['User']['NickName'])

itchat.auto_login(enableCmdQR=2)
itchat.run()